//
//  JwKeychain.h
//  JwPack
//
//  Created by 陈警卫 on 2024-07-31.
//

#import <Foundation/Foundation.h>

@interface JwKeychain : NSObject

/// 创建Keychain查询字典
+ (NSMutableDictionary *)keychainQueryForService:(NSString *)service;

/// 归档对象为NSData
+ (NSData *)archivedDataWithObject:(id)object;

/// 解档NSData为对象
+ (id)unarchivedObjectWithData:(NSData *)data;

/// 加载服务名相关联的数据项
+ (id)load:(NSString *)service;

/// 保存服务名相关联的数据项
+ (void)save:(NSString *)service data:(id)data;

/// 删除与服务名相关联的数据项
+ (void)deleteKeyData:(NSString *)service;

@end

